package com.rent.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zn
 * @since 2025-03-04
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sms_record")
@ApiModel(value = "SmsRecord对象", description = "SmsRecord")
public class SmsRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("手机号")
    @TableField("tel")
    private String tel;

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("短信类型 ")
    @TableField("msg_type")
    private Integer msgType;

    @ApiModelProperty("短信内容")
    @TableField("msg_content")
    private String msgContent;

    @ApiModelProperty("发送状态0.发送失败1.发送成功")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("发送时间")
    @TableField("send_time")
    private Date sendTime;

    @ApiModelProperty("过期时间")
    @TableField("expire")
    private Integer expire;

    @TableField("is_read")
    private Boolean isRead;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;
}
